package com.example.testknife4j6.controller;

import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

@Api(tags = {"测试接口"})
@RestController
public class TestController {
    @GetMapping("/test")
    public String hello(){
        return LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME);
    }
}
